package com.songlanyun.modules.memberbill.entity;

import com.songlanyun.common.drive.ValueObject;
import lombok.Data;

import javax.validation.constraints.DecimalMax;
import javax.validation.constraints.DecimalMin;
import javax.validation.constraints.NotBlank;
import javax.validation.constraints.NotNull;
import java.math.BigDecimal;

@Data
public class GiveBalanceDTO implements ValueObject {

    @NotNull(message = "转赠会员ID不能为空")
    private Long userObjId;


    @DecimalMin(value = "0.01",message = "输入的余额最小值是0.01")
    @DecimalMax(value = "99999999.00",message = "操作的最大金额是99999999.00")
    private BigDecimal value;

    /**
     * 是否是增加
     */
    private Boolean added;

    private Long goodsId;
}
